package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;

import java.util.List;

public interface IEmployeeService {
	void insert(Employee employee, Long[] roleIds);
	void delete(Long id);
	void update(Employee employee, Long[] roleIds);
	Employee select(Long id);
	List<Employee> list();

	PageInfo<Employee> query(QueryObject qo);

    Employee login(String username, String password);

    void batchDelete(Long[] ids);

    Employee queryEmployeeByUsername(String username);

    Workbook exportXls();

	void importXls(Workbook wb);

    List<Employee> selectByRoleSn(String[] roleSns);
}
